home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-07-16 | 1.4 KB | 66 lines |
- # $Id: Makefile 1.2 1995/12/17 21:50:58 digulla Exp digulla $
- # $Log: Makefile $
- # Revision 1.2 1995/12/17 21:50:58 digulla
- # Added PART/SUBPART
- #
- # Revision 1.1 1995/11/14 22:16:53 digulla
- # Initial revision
- #
-
- TOP_DIR = prj:
- PART = exec
- SUBPART = library
- CURRENT_DIR = source/$(PART)/$(SUBPART)/
-
- include $(TOP_DIR)MakeFlags
-
- FUNCTIONS = addlibrary closelibrary makefunctions makelibrary \
- oldopenlibrary openlibrary remlibrary setfunction \
- sumlibrary
-
- SRCDIR = src/
- SRCS = $(foreach f,$(FUNCTIONS),$(SRCDIR)$f.c)
- OBJS = $(foreach f,$(FUNCTIONS),$(OBJDIR)/$f.o)
- DEPS = $(foreach f,$(FUNCTIONS),$(OBJDIR)/$f.d)
- LIB = $(LIB_PREFIX)$(PART)_$(SUBPART)$(OPT_SUFFIX)$(LIB_SUFFIX)
-
- USR_DIST_FILES =
- DEV_DIST_FILES = Makefile RCS_Link $(SRCS) $(SRCDIR)RCS_Link
-
- INCLUDES = $(INCLUDE_DIR) $(TOP_DIR)$(CURRENT_DIR)include \
- $(INCLUDE_DIR) $(TOP_DIR)source/exec/include \
- $(INCLUDE_DIR) $(TOP_DIR)include
-
- all :: $(LIB)
- $(done-with-it)
-
- $(LIB) : $(OBJDIR) $(OBJS)
- $(AR) $(LIB) $(OBJS)
-
- install ::
- $(nothing-to-be-done)
-
- clean ::
- -$(RM) $(OBJS) $(LIB)
- $(done-with-it)
-
- check :: all
- $(nothing-to-be-done)
- # cd tests ; $(MAKE) all $(MAKEFLAGS) "CURRENT_DIR=$(CURRENT_DIR)"
-
- dist ::
- $(do-dist)
- # cd tests ; $(MAKE) dist $(MAKEFLAGS) "CURRENT_DIR=$(CURRENT_DIR)tests/"
-
- $(OBJDIR) :
- -$(MKDIR) $(OBJDIR)
-
- $(OBJDIR)/%.o : $(SRCDIR)%.c
- $(run-cc)
-
- $(OBJDIR)/%.d : $(SRCDIR)%.c
- $(make-depend)
-
- -include $(DEPS)
-
-